import { createApp } from 'vue'
import dayjs from 'dayjs'
import routes from './routes'
import lang from './lang'
import style from './style'
import App from './App.vue'

const app = createApp(App)

app.use(routes)
app.use(lang)
app.use(style)

// 时间处理
app.config.globalProperties.$timeFormat = (time) => {
  return dayjs.unix(time).format('MM/DD hh:mm') 
}

app.mount('#app')